#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#define JH(num) (\
((num&(0x55555555))<<1)|((num&(0xAAAAAAAA))>>1)\
)
int main()
{
	int i = 0;
	int num = 10;
	for (i = 31; i >= 0; i--)
	{
		printf("%d", (num>>i) & 1);
	}
	printf("\n");
	num=JH(num);
	for (i = 31; i >= 0; i--)
	{
		printf("%d", (num >> i) & 1);
	}
	return 0;
}